﻿<?xml version="1.0" encoding="utf-8" ?>
<sqlMap namespace="NewsPaper"
xmlns="http://ibatis.apache.org/mapping/V2"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >

  <alias>
    <typeAlias alias="Document" type="MyBatis.DataMapper.SqlClient.Test.Domain.Document, MyBatis.DataMapper.SqlClient.Test" />
    <typeAlias alias="Newspaper" type="MyBatis.DataMapper.SqlClient.Test.Domain.Newspaper, MyBatis.DataMapper.SqlClient.Test" />
  </alias>

  <resultMaps>

    <resultMap id="baseDocument" class="Document">
			<result property="Id"			column="Document_ID"/>
			<result property="Title"		column="Document_Title"/>
		</resultMap>

    <resultMap id="newspaper" class="Newspaper"  extends="baseDocument">
      <result property="City"	column="Document_City"/>
    </resultMap>

  </resultMaps>
</sqlMap>
